# 声明要求的 cmake 最低版本
cmake_minimum_required(VERSION 3.0 FATAL_ERROR) 

# 声明一个 cmake 工程
project(AtomDemo)


set(CMAKE_CXX_STANDARD 11)

find_package(OpenCV 3.3.0 REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

AUX_SOURCE_DIRECTORY(src ATOMDEMO_SOURCE)
include_directories( "${CMAKE_SOURCE_DIR}/include" )

# 设置编译模式
set( CMAKE_BUILD_TYPE "Debug" )

# 添加一个可执行程序
ADD_EXECUTABLE(${PROJECT_NAME} ${ATOMDEMO_SOURCE})


# 将库文件链接到可执行程序上
TARGET_LINK_LIBRARIES(${PROJECT_NAME} pthread )
TARGET_LINK_LIBRARIES(${PROJECT_NAME}  ${OpenCV_LIBS})













